﻿using System;

namespace TiaoTiaoCode.Common.Attributes
{
    /// <summary>
    /// 导入字段字
    /// </summary>
    public class FieldMappingAttribute : Attribute
    {
        /// <summary>
        /// 用来标记导出时字段顺序
        /// </summary>
        public int Order { get; set; }

        /// <summary>
        /// 可对应的中文名，
        /// 导出时，以第一个为准
        /// </summary>
        public string[] Fields { get; set; }

        public FieldMappingAttribute(int order, params string[] fields)
        {
            Order = order;
            Fields = fields;
        }
    }
}
